package com.zqxx.examine.model.question;


import java.util.Date;

public class QuestionHistory
  implements Comparable<QuestionHistory>
{
  private int examPaperId;
  private int questionId;
  private Date time;
  private String answer;
  private String myAnswer;
  private boolean isRight;
  private int questionTypeId;
  private int pointId;
  private int from;
  
  public int getFrom()
  {
    return this.from;
  }
  
  public void setFrom(int from)
  {
    this.from = from;
  }
  
  public int getPointId()
  {
    return this.pointId;
  }
  
  public void setPointId(int pointId)
  {
    this.pointId = pointId;
  }
  
  public int getQuestionTypeId()
  {
    return this.questionTypeId;
  }
  
  public void setQuestionTypeId(int questionTypeId)
  {
    this.questionTypeId = questionTypeId;
  }
  
  public int getQuestionId()
  {
    return this.questionId;
  }
  
  public void setQuestionId(int questionId)
  {
    this.questionId = questionId;
  }
  
  public int getExamPaperId()
  {
    return this.examPaperId;
  }
  
  public void setExamPaperId(int examPaperId)
  {
    this.examPaperId = examPaperId;
  }
  
  public Date getTime()
  {
    return this.time;
  }
  
  public void setTime(Date time)
  {
    this.time = time;
  }
  
  public String getAnswer()
  {
    return this.answer;
  }
  
  public void setAnswer(String answer)
  {
    this.answer = answer;
  }
  
  public String getMyAnswer()
  {
    return this.myAnswer;
  }
  
  public void setMyAnswer(String myAnswer)
  {
    this.myAnswer = myAnswer;
  }
  
  public boolean isRight()
  {
    return this.isRight;
  }
  
  public void setRight(boolean isRight)
  {
    this.isRight = isRight;
  }
  
  public int compareTo(QuestionHistory o)
  {
    if (this.time.getTime() > o.getTime().getTime()) {
      return 1;
    }
    if (this.time.getTime() < o.getTime().getTime()) {
      return -1;
    }
    return 0;
  }
}

